/**
 * Created by zhanghaibin on 2016/12/29.
 */
define(['js/data/Product','js/common'],function(){
    return {
        hotKeys:['西红杭','非转基因大豆','西瓜','椴木香菇','西瓜'],
        getSearchResult:function(key){
            var res = [];
            for(var i = 0; i < 100; i++){
                var product = new Product();
                product.id = i+1;
                product.name = '多维和谷 有机肥'+i;
                product.imgUrl = 'https://img12.360buyimg.com/n4/s130x130_jfs/t3928/31/351607507/197095/8880a932/584a54a1N9cb5dde6.jpg!q90.webp';
                product.inventory = rnd(20,2000);
                product.isDep = i%2==1;
                product.salesCount = rnd(1,1200);

                res.push(product);
            }
            return res;
        }
    };
});